{layout name="common@common_layout/template" /}
<style type="text/css">
    table tr th,
    table tr td {
        text-align: center;
    }
</style>
<section class="panel panel-default">
    <header class="panel-heading">
        <h3 class="m-b-none">学生列表</h3>
    </header>
    <div class="row wrapper">
        <div class="col-sm-offset-9 col-sm-3">
            <form action="{:url('administration_module/index/show_list')}" method="post">
                <div class="input-group">
                    <input type="text" name="name" class="input-sm form-control" placeholder="请输入学生名字" value="{$name}">
                    <span class="input-group-btn">
						<input type="submit" class="btn btn-sm btn-default" value="查询"/>
               		</span>
                </div>
            </form>
        </div>
    </div>
    <div class="table-responsive">
        <table class="table table-striped b-t b-light student_list">
            <thead>
            <tr>
                <th>姓名</th>
                <th>班级</th>
                <th style="width: 195px;">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="student_list" id="student" empty="还没有学生"}
            <tr data-id={$student.id} data-name={$student.name}>
                <td>{:highlight($student.name,$name)}</td>
                <td>{$student.class_id}</td>
                <td style="position: relative;">
                    <button class="btn btn-sm btn-info btn-rounded my_btn student_show">详细信息</button>
                    <button class="btn btn-sm btn-default btn-rounded my_btn student_more">更多操作</button>
                    <div class="common_btn student_btn">
                        <ul>

                            <li>
                                <a class="btn btn-sm btn-primary btn-rounded my_btn student_record">学生记录</a>
                            </li>
                            <li>
                                <a class="btn btn-sm btn-btn1 btn-rounded my_btn student_exam">考试记录</a>
                            </li>
                            <li>
                                <a class="btn btn-sm btn-btn2 btn-rounded my_btn student_evaluate">老师评价</a>
                            </li>
                            <li>
                                <a class="btn btn-sm btn-btn3 btn-rounded my_btn homework_evaluate">作业评价</a>
                            </li>
                            <li>
                                <a class="btn btn-sm btn-btn4 btn-rounded my_btn attendance_record">考勤记录</a>
                            </li>
                            <li>
                                <a class="btn btn-sm btn-dark btn-rounded my_btn student_delete">删除学生</a>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
    </div>
    <footer class="panel-footer">
        <div class="row">
            <div class="col-sm-offset-4 col-sm-4 text-center">
                <small class="text-muted inline m-t-sm m-b-sm">学生列表</small>
            </div>
            <div class="col-sm-4 text-right text-center-xs">
                {$student_list->render()}
            </div>
        </div>
    </footer>
</section>
<div id="common_popup" class="popup">
    <div class="popup_web">
        <div class="popup_rich_text">
            <div class="btn-toolbar m-b-sm btn-editor" data-role="editor-toolbar" data-target="#editor">
                <div class="btn-group">
                    <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" title="Font"><i
                            class="fa fa-font"></i><b class="caret"></b></a>
                    <ul class="dropdown-menu">
                    </ul>
                </div>
                <div class="btn-group">
                    <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" title="Font Size"><i
                            class="fa fa-text-height"></i>&nbsp;<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a data-edit="fontSize 5"><font size="5">Huge</font></a></li>
                        <li><a data-edit="fontSize 3"><font size="3">Normal</font></a></li>
                        <li><a data-edit="fontSize 1"><font size="1">Small</font></a></li>
                    </ul>
                </div>
                <div class="btn-group">
                    <a class="btn btn-default btn-sm" data-edit="bold" title="Bold (Ctrl/Cmd+B)"><i
                            class="fa fa-bold"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="italic" title="Italic (Ctrl/Cmd+I)"><i
                            class="fa fa-italic"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="strikethrough" title="Strikethrough"><i
                            class="fa fa-strikethrough"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="underline" title="Underline (Ctrl/Cmd+U)"><i
                            class="fa fa-underline"></i></a>
                </div>
                <div class="btn-group">
                    <a class="btn btn-default btn-sm" data-edit="insertunorderedlist" title="Bullet list"><i
                            class="fa fa-list-ul"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="insertorderedlist" title="Number list"><i
                            class="fa fa-list-ol"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="outdent" title="Reduce indent (Shift+Tab)"><i
                            class="fa fa-dedent"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="indent" title="Indent (Tab)"><i
                            class="fa fa-indent"></i></a>
                </div>
                <div class="btn-group">
                    <a class="btn btn-default btn-sm btn-info" data-edit="justifyleft"
                       title="Align Left (Ctrl/Cmd+L)"><i
                            class="fa fa-align-left"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="justifycenter" title="Center (Ctrl/Cmd+E)"><i
                            class="fa fa-align-center"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="justifyright" title="Align Right (Ctrl/Cmd+R)"><i
                            class="fa fa-align-right"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="justifyfull" title="Justify (Ctrl/Cmd+J)"><i
                            class="fa fa-align-justify"></i></a>
                </div>
                <div class="btn-group">
                    <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" title="Hyperlink"><i
                            class="fa fa-link"></i></a>
                    <div class="dropdown-menu">
                        <div class="input-group m-l-xs m-r-xs">
                            <input class="form-control input-sm" placeholder="URL" type="text"
                                   data-edit="createLink"/>
                            <div class="input-group-btn">
                                <button class="btn btn-default btn-sm" type="button">Add</button>
                            </div>
                        </div>
                    </div>
                    <a class="btn btn-default btn-sm" data-edit="unlink" title="Remove Hyperlink"><i
                            class="fa fa-cut"></i></a>
                </div>

                <div class="btn-group hide">
                    <a class="btn btn-default btn-sm" title="Insert picture (or just drag & drop)"
                       id="pictureBtn"><i class="fa fa-picture-o"></i></a>
                    <input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage"/>
                </div>
                <div class="btn-group">
                    <a class="btn btn-default btn-sm" data-edit="undo" title="Undo (Ctrl/Cmd+Z)"><i
                            class="fa fa-undo"></i></a>
                    <a class="btn btn-default btn-sm" data-edit="redo" title="Redo (Ctrl/Cmd+Y)"><i
                            class="fa fa-repeat"></i></a>
                </div>
            </div>
            <div id="editor" class="form-control rich_text">
            </div>
        </div>
    </div>
</div>
<script src="/static/js/administration/administration.js" type="text/javascript" charset="utf-8"></script>